﻿@model FTBS.Models.Entities.Format
<div id="category" style="display: normal; position: absolute; top: 317px; right: 355px">
    @using (Html.BeginForm("CreateFormatPartial", "Film"))
    {
        @Html.ValidationSummary(true)
        <table class="table striped bordered hovered" style="margin: 0px 0px 0px 40px">
            <tr>
                <th>
                    Tên định dạng 
                </th>
                <td>
                    <div class="input-control text">
                        @Html.EditorFor(model => model.FormatName)
                        <p style="color: red; font-size: 10pt">@Html.ValidationMessageFor(model => model.FormatName)</p>
                        @if (this.Session["FormatName"] != null)
                        {
                            <p style="color: red; font-size: 10pt">Tên định dạng này đã có sẵn!</p>
                        }
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input class="large info" type="submit" value="Lưu" />
                </td>
            </tr>
            <tr>
                <td>@Html.ActionLink("Back to List", "Create")</td>
            </tr>
        </table>
    }
</div>
